/**
 * Created by yoyoyk on 2017/6/6.
 */
import Relay from "react-relay";
export default class AcceptGoodsOrder extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { acceptGoodsOrder }`;
    }

    getVariables() {
        return {
            argsInput: {
                orderId:this.props.orderId,
                uid:this.props.uid,
                goodsInfo:this.props.goodsInfo
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on acceptGoodsOrderPayload {
             acceptGoodsOrder{
                    value
                    errorCode
             }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
                fragment on acceptGoodsOrderPayload {
                  acceptGoodsOrder{
                        value
                        errorCode
                    }
                 }
            `]
        }];
    }
}